<h3 class="page-header">日报详情</h3>

<div class="row">
  <div class="col-md-7" id="ssp_report_form">
    <%= show_for @report, class: 'dl-horizontal' do |s| %>
      <%= s.attribute :publish_at, format: :date %>
      <%= s.attribute :user, with: :nickname if current_user.admin %>
      <%= s.attribute :created_at, format: :long %>
      <%= s.attribute :reported_at, format: :long %>
    <% end %>
  </div>

  <div class="col-md-7">
    <%= index_for @report.report_items, class: 'table table-striped table-hover' do |i| %>
      <%= i.attribute :human_commodity_type %>
      <%= i.attribute :commodity_id do |u| %>
        <%= u.human_commodity %>
      <% end %>
      <%= i.attribute :price %>
      <%= i.attribute :count %>
    <% end %>
  </div>
</div>
